﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class ExamsEducation
	{
		public ExamsEducation()
		{
			m_RID = 0;
			m_Name = null;
			m_Term = 0;
			m_Grade = 0;
			m_Classtype = 0;
			m_State = 0;
            m_SchoolYear = 0;
            m_CreateDate = DateTime.Now;
            m_AreaID = 0;
		}

        public ExamsEducation(int rid,string name,short term,int grade,int classType,int state,int schoolYear,DateTime createDate,int areaId)
        {
            m_RID = rid;
            m_Name = name;
            m_Term = term;
            m_Grade = grade;
            m_Classtype = classType;
            m_State = state;
            m_SchoolYear = schoolYear;
            m_CreateDate = createDate;
            m_AreaID = areaId;
        }

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region Name
		
		private string m_Name;
		
		public string Name
		{
			get { return m_Name; }
			set { m_Name = value; }
		}
		
		#endregion
		
		#region Term
		
		private short m_Term;
		
		public short Term
		{
			get { return m_Term; }
			set { m_Term = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int m_Grade;
		
		public int Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}

        #endregion

        #region ClassType

        private int m_Classtype;

        public int ClassType
        {
            get { return m_Classtype; }
            set { m_Classtype = value; }
        }

        #endregion

        #region State

        private int m_State;

        public int State
        {
            get { return m_State; }
            set { m_State = value; }
        }

        #endregion

        #region SchoolYear

        private int m_SchoolYear;

        public int SchoolYear
        {
            get { return m_SchoolYear; }
            set { m_SchoolYear = value; }
        }

        #endregion

        #region State

        private DateTime m_CreateDate;

        public DateTime CreateDate
        {
            get { return m_CreateDate; }
            set { m_CreateDate = value; }
        }

        #endregion

        #region AreaID

        private int m_AreaID;

        public int AreaID
        {
            get { return m_AreaID; }
            set { m_AreaID = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			ExamsEducation castObj = (ExamsEducation) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 55;
			hash = hash * 55
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}